import { INestApplication, LoggerService } from '@nestjs/common'
import { HttpExceptionFilter } from './exception.filter'

export function useGlobalFilters(app: INestApplication, logger: LoggerService) {
  app.useGlobalFilters(new HttpExceptionFilter(logger))
}